package homework_06;

/**
 * 点Point类
 */
public class Point {
    int x;
    int y;
    public Point(){

    }

    public Point(int x0,int y0){
        this.x = x0;
        this.y = y0;
    }

    public void movePoint(int dx,int dy){
        this.x += dx;
        this.y += dy;
        System.out.println("平移成功");
    }

    public void showPoint(){
        System.out.println("当前点的位置为(" + this.x + "," + this.y + ")");
    }
}
